package cn.com.basic.framework.web.config.datadource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author mj1996
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDataSourceType();
    }
}
